/*
 * @Description:
 * @Author: 稽辉
 * @Date: 2025-02-10 16:51:35
 * @LastEditTime: 2025-02-10 16:56:10
 * @LastEditors: 稽辉
 */
import type { AddressItem } from '@/types/address'
import { defineStore } from 'pinia'
import { ref } from 'vue'

export const useAddressesStore = defineStore('address', () => {
  const seletedAddress = ref<AddressItem>()

  const changeSelectedAddress = (val: AddressItem) => {
    seletedAddress.value = val
  }
  return {
    seletedAddress,
    changeSelectedAddress,
  }
})
